var express = require('express')
var app = express()
var port = process.env.PORT || 3000

app.set('view engine','jade')
app.set('views','./views/pages')
app.listen(port)
console.log("node,js is started on port "+port)

//index page
app.get('/',function(req,res) {
	res.render('index',{
		title:'首页'
	})
})

//index page
app.get('/movie/:id',function(req,res) {
	res.render('detail',{
		title:'详情'
	})
})

//index page
app.get('/admin',function(req,res) {
	res.render('admin',{
		title:'后台'
	})
})

//index page
app.get('/list',function(req,res) {
	res.render('list',{
		title:'列表'
	})
})